﻿using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace Group_Mail
{
    [Serializable]
    public class Group
    {
        public Group()
        {
            Fields = new List<Field>();
            Recipients = new List<Recipient>();
        }

        public List<Field> Fields { get; set; }

        [XmlAttribute("id")]
        public string Id { get; set; }

        [XmlAttribute("emailField")]
        public string EmailField { get; set; }

        [XmlAttribute("name")]
        public string Name { get; set; }

        public List<Recipient> Recipients { get; set; }
    }
}